package com.rdl.field.type;

import com.rdl.relation.FieldType;

public class string_t extends FieldType{
	private Integer maxLen;
	public string_t(Integer maxLen){
		this.maxLen = maxLen;
	}
	
	@Override
	public String getTypeName() {
		return "uint64_t";
	}

	@Override
	public String getSqlTypeName() {
		return "VARCHAR(" + maxLen + ")";
	}

	@Override
	public final boolean getIdlUseConst() {
		return true;
	}

	@Override
	public final String getCheckEmpty() {
		return "";
	}
	
	@Override
	public final boolean getNeedUFlag(){
		return true;
	}

	@Override
	public String getGetFromDbFunction() {
		return "GetString";
	}
}
